﻿//Versione 1.0 dev by : Diego Stefanon  AngularJS v1.2.16 //
"use strict";

//alert("Core 1");


//dev by : Diego Stefanon  AngularJS v1.2.16 //
var myApp = angular.module('myApp', []);


myApp.service('myCommonService', function ($http) {

    this.get = function () {
        return $http({
            method: 'POST',
            url: "http://localhost:4453/Mappe.svc/GetStazioniSensori",
            responseType: 'json',
            data: JSON.stringify({ pIdSens: 101 })
        });
    } //fm

    this.testService = function ()
    { alert('In test service'); }

});//end service


myApp.controller('myCtrl', ['$scope', '$http', '$timeout', 'myCommonService', '$window', '$location',
    function ($scope, $http, $timeout, IDatiService, $window, $location) {

        $scope.host = window.location.host;
        $scope.hostHttp = "http://" + window.location.host;
        $scope.datiBoxAll = "[]";
        $scope.boxCounter = -1;


    }]);